<!doctype html>
<html lang="">
<head>
    <meta charset="UTF-8"/>
    <link rel="icon" href="/favicon.ico"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>商都县长盛工业园区指挥中心</title>
    <script type="application/javascript">
        window.baseRootValue = 16;
        let baseSize = window.baseRootValue || 16;

        function setRem() {
            let scale = document.documentElement.clientWidth / 1080;
            document.documentElement.style.fontSize =
                baseSize * Math.min(scale, 2) + "px";
        }

        setRem(); //初始化

        function resetRem(num) {
            if (num) baseSize = Number(num);
            setRem();
        }

        window.resetRem = resetRem; // 全局可调用(其他方式也可)

        window.onresize = function () {
            setRem();
        };
    </script>
</head>
<body>
<div id="app"></div>
<div id="cssRender"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
